Package-level declarations

The main API interface to be used when integrating with SnakeYAML Engine KMP.

The main API interface to be used when integrating with SnakeYAML Engine KMP.

Types

Link copied to clipboard
interface ConstructNode

Provide a way to construct an instance from the composed Node. Support recursive objects if it is required. (create Native Data Structure out of Node Graph) (this is the opposite for Represent)

Link copied to clipboard
class Dump @JvmOverloads constructor(settings: DumpSettings, representer: Representer = Representer(settings))

Common way to serialize any Java instance(s). The instance is stateful. Only one of the 'dump' methods may be called, and it may be called only once.

Link copied to clipboard

Immutable configuration for serialisation. Description for all the fields can be found in the builder

Link copied to clipboard

Builder pattern implementation for DumpSettings

Link copied to clipboard
class Load @JvmOverloads constructor(settings: LoadSettings, constructor: BaseConstructor = StandardConstructor(settings))

Common way to load Java instance(s). This class is not thread-safe. Which means that all the methods of the same instance can be called only by one thread. It is better to create an instance for every YAML stream. The instance is stateful. Only one of the 'load' methods may be called, and it may be called only once.

Link copied to clipboard

Immutable configuration for loading. Description for all the fields can be found in the builder

Link copied to clipboard

Builder pattern implementation for LoadSettings

Link copied to clipboard
fun interface RepresentToNode

Create a Node Graph out of the provided Native Data Structure (Java instance). (this is opposite to ConstructNode)

Link copied to clipboard
interface SettingKey

Type for the custom keys in settings. The keys (used in custom settings) must implement this interface. It makes possible to be 'compiler safe' and define Enum for keys. This way is easier to follow the changes in the key names and avoid a typo. The implementation of this interface must properly implement equals() and hashCode() to be used as keys in a Map

Link copied to clipboard

Writer with the same methods as in java.io.Writer but without throwing IOExceptions The purpose of this class is to avoid checked exceptions in every method signature. Implementations must define their own way to react on IOExceptions YamlOutputStreamWriter

Link copied to clipboard

Provide an example of implementation of StreamDataWriter interface which does not throw IOException

Link copied to clipboard
class YamlUnicodeReader(source: Source) : Source

Generic unicode text reader, which will use BOM mark to identify the encoding to be used. If BOM is not found then use a given default or system encoding.